<?php


namespace app\admin\freight\controller;


use app\admin\freight\logic\ExpressLogic;
use app\admin\freight\validate\ExpressValidate;
use app\common\controller\BaseAdminController;

/**
 * 物流公司管理
 * Class ExpressController
 * @package app\admin\freight\controller
 */
class ExpressController extends BaseAdminController
{
    protected function init()
    {
        parent::init();
        $this->logic = new ExpressLogic();
        $this->validate = new ExpressValidate();
    }

    public function getAllExpress()
    {
        $where=[];
        return $this->success($this->logic->getList($where));
    }
}